From: Andreas Beckmann Date: Mon, 10 Oct 2016 11:38:39 +0000 (+0100) Subject: compatibility with glibc-2.23 X-Git-Tag: archive/raspbian/1.6-3+rpi1~1^2^2^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8d2411210901b3f6c741ba62ebe59b99b4afea6b;p=pocl.git compatibility with glibc-2.23 inspired by the Ubuntu patch in 0.13-0ubuntu1 Gbp-Pq: Name glibc-2.23.patch --- diff --git a/lib/kernel/vecmathlib/floattypes.h b/lib/kernel/vecmathlib/floattypes.h index fa4cc44..97c0738 100644 --- a/lib/kernel/vecmathlib/floattypes.h +++ b/lib/kernel/vecmathlib/floattypes.h @@ -39,6 +39,7 @@ using namespace std; __attribute__((__unused__)) #endif +#if !defined(__GLIBC__) || (__GLIBC__ == 6 && __GLIBC_MINOR__ < 23) // Capture libc macros, then undefine them #ifndef isfinite #error "isfinite is not a macro" @@ -55,6 +56,7 @@ using namespace std; #ifndef signbit #error "signbit is not a macro" #endif +#endif namespace { template inline int libc_isfinite(T x) { return isfinite(x); }